﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 订单扩展表
	/// </summary>
	public class DbOrdersEx
	{ 
		#region DbOrdersEx
		/// <summary>
		/// 
		/// </summary>
		public DbOrdersEx()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbOrdersEx(Int32 oeId)
		{
			this.oeId = oeId;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbOrdersEx(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["oeId"]),out oeId);
			this.oeOrderSN = Convert.ToString(dr["oeOrderSN"]);
			this.oePayment = Convert.ToString(dr["oePayment"]);
			this.oePaySN = Convert.ToString(dr["oePaySN"]);
			this.oePayAmount = Convert.ToDecimal(dr["oePayAmount"]);
			if(dr["oePayTime"] != DBNull.Value)
				this.oePayTime = Convert.ToDateTime(dr["oePayTime"]);
			this.oeStatus = Convert.ToInt16(dr["oeStatus"]);
			int.TryParse(Convert.ToString(dr["oeUserId"]),out oeUserId);
			
		}
		#endregion
		
		
		#region OeId
		private Int32 oeId;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 OeId
		{
			get{ return oeId; }
			set{ oeId= value; }
		}
		#endregion
		
		#region OeOrderSN
		private System.String oeOrderSN;
		/// <summary>	 
		/// 订单号
		/// </summary>
		public System.String OeOrderSN
		{
			get{ return oeOrderSN; }
			set{ oeOrderSN= value; }
		}
		#endregion
		
		#region OePayment
		private System.String oePayment;
		/// <summary>	 
		/// 付款方式
		/// </summary>
		public System.String OePayment
		{
			get{ return oePayment; }
			set{ oePayment= value; }
		}
		#endregion
		
		#region OePaySN
		private System.String oePaySN;
		/// <summary>	 
		/// 第三方支付单号
		/// </summary>
		public System.String OePaySN
		{
			get{ return oePaySN; }
			set{ oePaySN= value; }
		}
		#endregion
		
		#region OePayAmount
		private Decimal oePayAmount;
		/// <summary>	 
		/// 支付金额
		/// </summary>
		public Decimal OePayAmount
		{
			get{ return oePayAmount; }
			set{ oePayAmount= value; }
		}
		#endregion
		
		#region OePayTime
		private DateTime oePayTime;
		/// <summary>	 
		/// 支付时间
		/// </summary>
		public DateTime OePayTime
		{
			get{ return oePayTime; }
			set{ oePayTime= value; }
		}
		#endregion
		
		#region OeStatus
		private Int16 oeStatus;
		/// <summary>	 
		/// 支付状态
		/// </summary>
		public Int16 OeStatus
		{
			get{ return oeStatus; }
			set{ oeStatus= value; }
		}
		#endregion
		
		#region OeUserId
		private Int32 oeUserId;
		/// <summary>	 
		/// 用户Id
		/// </summary>
		public Int32 OeUserId
		{
			get{ return oeUserId; }
			set{ oeUserId= value; }
		}
		#endregion

	}
}
